let createLogger = require('../core/mango-logger/loggers');
const path=require('path');

module.exports = () => {
  return async (ctx, next) => {
    console.log('createLogger')
      if(!ctx.logger){
        ctx.logger=createLogger(path.resolve(__dirname,'../log/wanglong.log'))
      }
      await next();
  };
}